/*
* class.h 
*
* Copyright (C) 2007 LianHaidong <>
*/
#include "class.h"
#include "malloc.h"

void* __new_obj(unsigned long size, __CLASS_CREATE_func __create)
{
      void* n;
      n = malloc(size);
      if (n) {
          __create(n);
      }
      return n;
}

void __delete_obj(void *obj)
{
	if (obj != NULL)
		free(obj);
}

